package com.yy.homework;

/**
 * chapter15  com.yy.homework
 * 2023-06-22 22:46
 *
 * @author yy yuyue
 * description : 不可描述
 * @date 2023/6/22 22:46
 * <p>
 * 定义一个 User 类:该类包含: private成员变量 (int类型) id，age; (String 类型) name.
 */
public class User {
    private int id;

    private int age;
    private String name;

    public User(int id, int age, String name) {
        this.id = id;
        this.age = age;
        this.name = name;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", age=" + age +
                ", name='" + name + '\'' +
                '}';
    }
}
